<?php

namespace app\index\controller;

class AreaBase
{
    public function index()
    {
        $query = \app\model\Area::field(['id', 'name'])->order('sort', 'asc');

        $models = $query->select();

        return json(['code' => 20000, 'data' => ['areas' => $models]]);
    }
}
